﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="masterDataSet" targetNamespace="http://tempuri.org/masterDataSet.xsd" xmlns:mstns="http://tempuri.org/masterDataSet.xsd" xmlns="http://tempuri.org/masterDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="masterConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="masterConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.OperacionesDesconectadas.Properties.Settings.GlobalReference.Default.masterConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="LibrosTableAdapter" GeneratorDataComponentClassName="LibrosTableAdapter" Name="Libros" UserDataComponentName="LibrosTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="masterConnectionString (Settings)" DbObjectName="master.dbo.Libros" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Libros] WHERE (([id] = @Original_id) AND ((@IsNull_asignatura = 1 AND [asignatura] IS NULL) OR ([asignatura] = @Original_asignatura)) AND ((@IsNull_titulo = 1 AND [titulo] IS NULL) OR ([titulo] = @Original_titulo)) AND ((@IsNull_autor = 1 AND [autor] IS NULL) OR ([autor] = @Original_autor)) AND ((@IsNull_fecha_publicacion = 1 AND [fecha_publicacion] IS NULL) OR ([fecha_publicacion] = @Original_fecha_publicacion)) AND ((@IsNull_dispinible = 1 AND [dispinible] IS NULL) OR ([dispinible] = @Original_dispinible)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_asignatura" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="asignatura" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_asignatura" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="asignatura" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_titulo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="titulo" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_titulo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="titulo" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_autor" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="autor" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_autor" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="autor" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_fecha_publicacion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="fecha_publicacion" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_fecha_publicacion" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="fecha_publicacion" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dispinible" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dispinible" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_dispinible" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="dispinible" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Libros] ([id], [asignatura], [titulo], [autor], [fecha_publicacion], [dispinible]) VALUES (@id, @asignatura, @titulo, @autor, @fecha_publicacion, @dispinible);
SELECT id, asignatura, titulo, autor, fecha_publicacion, dispinible FROM Libros WHERE (id = @id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@asignatura" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="asignatura" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@titulo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="titulo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@autor" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="autor" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@fecha_publicacion" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="fecha_publicacion" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@dispinible" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="dispinible" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT id, asignatura, titulo, autor, fecha_publicacion, dispinible FROM dbo.Libros</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Libros] SET [id] = @id, [asignatura] = @asignatura, [titulo] = @titulo, [autor] = @autor, [fecha_publicacion] = @fecha_publicacion, [dispinible] = @dispinible WHERE (([id] = @Original_id) AND ((@IsNull_asignatura = 1 AND [asignatura] IS NULL) OR ([asignatura] = @Original_asignatura)) AND ((@IsNull_titulo = 1 AND [titulo] IS NULL) OR ([titulo] = @Original_titulo)) AND ((@IsNull_autor = 1 AND [autor] IS NULL) OR ([autor] = @Original_autor)) AND ((@IsNull_fecha_publicacion = 1 AND [fecha_publicacion] IS NULL) OR ([fecha_publicacion] = @Original_fecha_publicacion)) AND ((@IsNull_dispinible = 1 AND [dispinible] IS NULL) OR ([dispinible] = @Original_dispinible)));
SELECT id, asignatura, titulo, autor, fecha_publicacion, dispinible FROM Libros WHERE (id = @id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@asignatura" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="asignatura" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@titulo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="titulo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@autor" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="autor" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@fecha_publicacion" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="fecha_publicacion" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@dispinible" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="dispinible" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_asignatura" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="asignatura" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_asignatura" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="asignatura" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_titulo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="titulo" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_titulo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="titulo" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_autor" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="autor" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_autor" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="autor" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_fecha_publicacion" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="fecha_publicacion" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_fecha_publicacion" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="fecha_publicacion" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_dispinible" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="dispinible" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_dispinible" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="dispinible" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="id" DataSetColumn="id" />
              <Mapping SourceColumn="asignatura" DataSetColumn="asignatura" />
              <Mapping SourceColumn="titulo" DataSetColumn="titulo" />
              <Mapping SourceColumn="autor" DataSetColumn="autor" />
              <Mapping SourceColumn="fecha_publicacion" DataSetColumn="fecha_publicacion" />
              <Mapping SourceColumn="dispinible" DataSetColumn="dispinible" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="masterDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="masterDataSet" msprop:Generator_UserDSName="masterDataSet" msprop:EnableTableAdapterManager="True">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Libros" msprop:Generator_UserTableName="Libros" msprop:Generator_RowDeletedName="LibrosRowDeleted" msprop:Generator_TableClassName="LibrosDataTable" msprop:Generator_RowChangedName="LibrosRowChanged" msprop:Generator_RowClassName="LibrosRow" msprop:Generator_RowChangingName="LibrosRowChanging" msprop:Generator_RowEvArgName="LibrosRowChangeEvent" msprop:Generator_RowEvHandlerName="LibrosRowChangeEventHandler" msprop:Generator_TablePropName="Libros" msprop:Generator_TableVarName="tableLibros" msprop:Generator_RowDeletingName="LibrosRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="id" msprop:Generator_UserColumnName="id" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInTable="idColumn" type="xs:int" />
              <xs:element name="asignatura" msprop:Generator_UserColumnName="asignatura" msprop:Generator_ColumnPropNameInRow="asignatura" msprop:Generator_ColumnVarNameInTable="columnasignatura" msprop:Generator_ColumnPropNameInTable="asignaturaColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="titulo" msprop:Generator_UserColumnName="titulo" msprop:Generator_ColumnPropNameInRow="titulo" msprop:Generator_ColumnVarNameInTable="columntitulo" msprop:Generator_ColumnPropNameInTable="tituloColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="300" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="autor" msprop:Generator_UserColumnName="autor" msprop:Generator_ColumnPropNameInRow="autor" msprop:Generator_ColumnVarNameInTable="columnautor" msprop:Generator_ColumnPropNameInTable="autorColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="300" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="fecha_publicacion" msprop:Generator_UserColumnName="fecha_publicacion" msprop:Generator_ColumnPropNameInRow="fecha_publicacion" msprop:Generator_ColumnVarNameInTable="columnfecha_publicacion" msprop:Generator_ColumnPropNameInTable="fecha_publicacionColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="dispinible" msprop:Generator_UserColumnName="dispinible" msprop:Generator_ColumnPropNameInRow="dispinible" msprop:Generator_ColumnVarNameInTable="columndispinible" msprop:Generator_ColumnPropNameInTable="dispinibleColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Libros" />
      <xs:field xpath="mstns:id" />
    </xs:unique>
  </xs:element>
</xs:schema>